//
//  singerparticularscell.m
//  A段项目音乐播放
//
//  Created by 太阳 on 15/5/23.
//  Copyright (c) 2015年 lanou3g.com蓝鸥科技. All rights reserved.
//

#import "singerparticularscell.h"
#import "myButton.h"
@implementation singerparticularscell
- (void)dealloc
{
    [_songname release];
    [_button release];
    [_collectButton release];
    [_singerName release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self builtInterface];
    }
    return self;
}
- (void)builtInterface
{
    self.songname = [[[UILabel alloc]initWithFrame:CGRectMake(65, 10, 200, 30)] autorelease];
    self.songname.textColor = [UIColor colorWithWhite:0.3 alpha:1];
    self.songname.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:self.songname];
    self.songname.textColor = [UIColor whiteColor];
    
    self.singerName = [[[UILabel alloc]initWithFrame:CGRectMake(65, 40, 200, 20)] autorelease];
    self.singerName.textColor = [UIColor whiteColor];
    self.singerName.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.singerName];
    self.button = [[[myButton alloc]initWithFrame:CGRectMake(5, 5, 50, 50)] autorelease];
    
    [self.contentView addSubview:self.button];
    self.selectionStyle = UITableViewCellSelectionStyleNone;

    self.collectButton = [myButton buttonWithType:UIButtonTypeSystem];

    self.collectButton.frame = CGRectMake([UIScreen mainScreen].bounds.size.width - 55, 5, 60, 50);
    
    [self.contentView addSubview:self.collectButton];
    
    
    UIImage *like = [UIImage imageNamed:@"dontlike.png"];
    like = [like imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UIImageView *likeview = [[[UIImageView alloc]initWithFrame:CGRectMake(15, 15, 20, 20)] autorelease];
    likeview.image = like;
    [self.collectButton addSubview:likeview];
    UIImage *aimage = [UIImage imageNamed:@"add.png"];
    aimage = [aimage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UIImageView *imageview = [[[UIImageView alloc]initWithFrame:CGRectMake(15, 15, 20, 20)] autorelease];
    imageview.image = aimage;
    [self.button addSubview:imageview];

    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
